<!--<script>
export default {
  name: "Page1"
}
</script>-->

<template>
  <div>
    <h1>这是页面1！！！！用户名：{{username}}</h1>
  </div>
</template>

<script>
export default{
  name:"Page1",
  data(){
    return{
      username:''
    }
  },
  //页面挂载
  mounted() {
    //从路由中获取请求参数
    this.username=this.$route.query.username;
  }
}
</script>

<style scoped>

</style>